package com.jay.base.thread.NewThreadType;

/**
 * Created by caoyuan7 on 2019/7/18.
 */
public class Demo3 {
    public static void main(String[] args){
        new Thread(new Runnable() {
            @Override
            public void run() {
                System.out.println("runnable");
            }
        }){
            public void run(){
                System.out.println("sub");
            }
        }.start();

    }
}
